//
//  ServiceManager.h
//  insyte
//
//  Created by Vu Dang Tuan on 6/21/15.
//  Copyright (c) 2015 Robert. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ServiceManager : NSObject
+ (void) loginWithEmail:(NSString *)email password:(NSString*) password cb:(void (^)(BOOL rs))completion;
+ (void) loginWithPhone:(NSString *)code phone:(NSString*)phone cb:(void (^)(BOOL rs))completion;
+ (void) registerWithEmail:(NSString *)email password:(NSString*) password firstname:(NSString*)firstname lastname:(NSString*)lastname cb:(void (^)(BOOL rs))completion;
+ (void) registerWithFacebook:(NSString *)access_token cb:(void (^)(BOOL rs))completion;
+ (void) registerWithPhone: (NSString*) prefix phone:(NSString*)phone cb:(void (^)(NSString* rs))completion;

@end
